package com.woniuxy.school.user.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.woniuxy.commons.core.exception.SchoolException;
import com.woniuxy.school.user.dto.FindUserDto;
import com.woniuxy.school.user.entity.UserInfo;
import com.woniuxy.school.user.from.FindUserFrom;
import com.woniuxy.school.user.mapper.UserInfoMapper;
import com.woniuxy.school.user.service.UserInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 * 普通用户表 服务实现类
 * </p>
 *
 * @author 吴彦祖
 * @since 2025年05月14日
 */
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> implements UserInfoService {

    /**
     * 通过手机号查询用户
     */
    @Override
    public UserInfo getUserInfoByPhone(String phone) {
        return query().eq("phone",phone).one();
    }

}
